﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Ocean.His.MedicalInsurance
{
    [DataContract]
    public class SI1304Data
    {

        /// <summary>
        /// 医疗目录编码
        /// 
        /// </summary>
        [DataMember(Name = "med_list_codg")]
        public string MedListCodg { get; set; }

        /// <summary>
        /// 通用名编号
        /// 
        /// </summary>
        [DataMember(Name = "genname_codg")]
        public string GennameCodg { get; set; }

        /// <summary>
        /// 药品通用名
        /// 
        /// </summary>
        [DataMember(Name = "drug_genname")]
        public string DrugGenname { get; set; }

        /// <summary>
        /// 药品商品名
        /// 
        /// </summary>
        [DataMember(Name = "drug_prodname")]
        public string DrugProdname { get; set; }

        /// <summary>
        /// 中草药名称
        /// 
        /// </summary>
        [DataMember(Name = "tcmherb_name")]
        public string TcmherbName { get; set; }

        /// <summary>
        /// 中草药单复方标志
        /// 
        /// </summary>
        [DataMember(Name = "cpnd_flag")]
        public string CpndFlag { get; set; }

        /// <summary>
        /// 有效标志
        /// 
        /// </summary>
        [DataMember(Name = "vali_flag")]
        public string ValiFlag { get; set; }

        /// <summary>
        /// 唯一记录号
        /// 
        /// </summary>
        [DataMember(Name = "rid")]
        public string Rid { get; set; }

        /// <summary>
        /// 版本号
        /// 
        /// </summary>
        [DataMember(Name = "ver")]
        public string Ver { get; set; }

        /// <summary>
        /// 经办开始时间
        /// 
        /// </summary>
        [DataMember(Name = "opt_begn_time")]
        public string OptBegnTime { get; set; }

        /// <summary>
        /// 经办结束时间
        /// 
        /// </summary>
        [DataMember(Name = "opt_end_time")]
        public string OptEndTime { get; set; }

        /// <summary>
        /// 更新时间
        /// 
        /// </summary>
        [DataMember(Name = "updt_time")]
        public string UpdtTime { get; set; }

        /// <summary>
        /// 当前页数
        /// 
        /// </summary>
        [DataMember(Name = "page_num")]
        public decimal PageNum { get; set; }

        /// <summary>
        /// 本页数据量
        /// 
        /// </summary>
        [DataMember(Name = "page_size")]
        public decimal PageSize { get; set; }

    }

    [DataContract]
    public class SI1304InputModel
    {
        [DataMember(Name = "data")]
        public SI1304Data SI1302Data { get; set; }

        public SI1304InputModel(SI1304Data si1302Data) 
        {
            SI1302Data = si1302Data;
        }
    }

    /// <summary>
    /// 1301
    /// 西药中成药目录下载
    /// </summary>
    [DataContract]
    public class SI1304RequestModel: SIBaseRequestModel
    {
        public SI1304RequestModel(MedicalInsuranceOption medicalInsuranceOption
            , SI1304Data sI1304Data) : base(medicalInsuranceOption)
        {
            Infno = "1304";
            Input = new SI1304InputModel(sI1304Data);
        }

        /// <summary>
        /// 交易输入
        /// </summary>
        [DataMember(Name = "input")]
        public SI1304InputModel Input { get; set; }
    }
}
